﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebNext.Domain.Entities
{
	public class EntryChapterElement : EntryElement
	{
		public const int MaxChapterLength = 5000;

		public string Chapter
		{
			get;
			set;
		}

		public EntryChapterElement()
		{
			this.Type = EntryElementType.Chapter;
		}

		public override bool ContainsText(string text)
		{
			return this.Chapter != null && this.Chapter.IndexOf(text, StringComparison.InvariantCultureIgnoreCase) >= 0;
		}
	}
}
